package com.collect.tanzania.zhiBean.zhiReceive;

import android.text.TextUtils;

import com.collect.tanzania.zhiGlobal.zhiAppSettings.ZHIProjectConstants;
import com.collect.tanzania.zhiUtils.StringUtil;

import java.io.Serializable;

public class ZHIRCaseEntity implements Serializable {

    private String orderId;
    private String mobile;
    private String overdueDay;
    private String fullName;
    private String userId;
    //最后一次记录
    private String lastContactResult;
    //记录数
    private String recordNum;
    //v2
    private String appId;
    //部分还款标识
    private String partRepayFlag;
    //今天是否有做跟单
    private String todayMarkFlag;
    //今天记录数
    private String dayFollowNum;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getMobile() {
        return StringUtil.safeString(mobile);
    }

    public String getMobileEncryptFormatter() {
        return StringUtil.phoneNumberEncryptFormatter(getMobile());
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOverdueDay() {
        return overdueDay;
    }

    public void setOverdueDay(String overdueDay) {
        this.overdueDay = overdueDay;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getLastContactResult() {
        return StringUtil.safeString(lastContactResult);
    }

    public void setLastContactResult(String lastContactResult) {
        this.lastContactResult = lastContactResult;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRecordNum() {
        return recordNum;
    }

    public void setRecordNum(String recordNum) {
        this.recordNum = recordNum;
    }

    public String getAppId() {
        if (TextUtils.isEmpty(appId)) {
            appId = "Other";
        }
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @Deprecated
    public boolean isOkrupee() {
        return StringUtil.safeString(appId).equalsIgnoreCase(ZHIProjectConstants.SYS_OKRUPEE);
    }

    @Deprecated
    public boolean isGetpaisa() {
        return StringUtil.safeString(appId).equalsIgnoreCase(ZHIProjectConstants.SYS_GETPAISA);
    }

    @Deprecated
    public boolean isCreditfinch() {
        return StringUtil.safeString(appId).equalsIgnoreCase(ZHIProjectConstants.SYS_CREDITFINCH);
    }

    @Deprecated
    public boolean isPaisafinch() {
        return StringUtil.safeString(appId).equalsIgnoreCase(ZHIProjectConstants.SYS_PAISAFINCH);
    }

    @Deprecated
    public boolean isSweetbee() {
        return StringUtil.safeString(appId).equalsIgnoreCase(ZHIProjectConstants.SYS_SWEETBEE);
    }

    @Deprecated
    public boolean isKrazyCat() {
        return StringUtil.safeString(appId).equalsIgnoreCase(ZHIProjectConstants.SYS_KRAZYCAT);
    }

    public boolean isNextCredit() {
        return StringUtil.safeString(appId).equalsIgnoreCase(ZHIProjectConstants.SYS_NEXTCREDIT);
    }

    public String getPartRepayFlag() {
        return StringUtil.safeString(partRepayFlag);
    }

    public void setPartRepayFlag(String partRepayFlag) {
        this.partRepayFlag = partRepayFlag;
    }

    public boolean isPartRepayFlag() {
        return getPartRepayFlag().equalsIgnoreCase("YES");
    }

    public String getTodayMarkFlag() {
        return StringUtil.safeString(todayMarkFlag);
    }

    public boolean isTodayMarkFlag() {
        return getTodayMarkFlag().equalsIgnoreCase("YES");
    }

    public void setTodayMarkFlag(String todayMarkFlag) {
        this.todayMarkFlag = todayMarkFlag;
    }

    public String getDayFollowNum() {
        return StringUtil.safeString(dayFollowNum);
    }

    public String getDayFollowNumFormat() {
        return "Followed times today:" + StringUtil.safeString(dayFollowNum);
    }

    public void setDayFollowNum(String dayFollowNum) {
        this.dayFollowNum = dayFollowNum;
    }
}
